<div class="fly-panel fly-column">
    <div class="layui-container">
        <ul class="layui-clear">
            <!--<span class="layui-badge-dot"></span>-->
            <li class="layui-hide-xs layui-this"><a href="/">首页</a></li>
            {tp:nav name="nav" limit="6"}
            <li><a href="/forum?category_id={$nav.id}">{$nav.name}</a></li>
            {/tp:nav}

            {if auth()->check()}
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="/user/forum">我发表的贴</a></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="/user/forum#/collection">我收藏的贴</a></li>
            {/if}
        </ul>
        <div class="fly-column-right layui-hide-xs">
            <form action="/forum" class="fly-extend-banner-search">
                <span class="fly-search layui-inline">
                    <input placeholder="搜索" name="keywords" autocomplete="off" value="" class="layui-input">
                </span>
                <button class="layui-btn"><i class="layui-icon layui-icon-search"></i></button>
                {if auth()->check()}
                <a href="/forum/create" class="layui-btn">发表新帖</a>
                {/if}
            </form>
        </div>
        {if auth()->check()}
        <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
            <a href="/forum/create" class="layui-btn">发表新帖</a>
        </div>
        {/if}
    </div>
</div>
